﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="comp_view_job.aspx.cs" Inherits="HY.WEB.SA.comp_view_job" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Import Namespace="HY.BLL" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
   
</head>
<body>
    <form id="form1" runat="server" >
    <div>

    <ext:PageManager ID="PageManager1"  runat="server" AjaxAspnetControls="lblmemo" />
    <ext:HiddenField ID="hidsid" runat="server"></ext:HiddenField>
    <ext:HiddenField ID="hidsbh" runat="server"></ext:HiddenField>
    <ext:Label ID="labResult" CssClass="result" EncodeText="false" runat="server">
    </ext:Label>
    
        <ext:Form ID="Form2" AutoScroll="true" runat="server" BodyPadding="5px" EnableBackgroundColor="true" Title="表单">
            <Rows>
                <ext:FormRow ID="FormRow1" runat="server">
               <Items>
               <ext:SimpleForm ID="SimpleForm1" runat="server" EnableBackgroundColor="true" ShowBorder="True" Title="公司信息"  ShowHeader="True">
        <Items>
            <ext:Label ID="lblbh" runat="server" Label="编号" >
            </ext:Label>
          <ext:Label runat="server" Width="200px" Label="企业名称" ID="lblnm" >
            </ext:Label> 
               <ext:Label ID="lblgm" runat="server" Label="企业规模" >
            </ext:Label>
    <ext:Label ID="lblxz" runat="server" Label="企业性质" >
            </ext:Label>
              <ext:Label ID="lblcity" runat="server" Label="区域" >
                       </ext:Label>
    <ext:Label runat="server" Label="联系人" ID="lblperson" >   </ext:Label>
               <ext:Label runat="server" Label="联系人性别" ID="lblsex" >   </ext:Label>
                <ext:Label runat="server" Label="联系人职务" ID="lbljob" >   </ext:Label>
                 <ext:Label runat="server"  Label="私人手机" ID="lblmtel" >
            </ext:Label>   
              <ext:Label ID="lbltel" runat="server" Label="公司电话" >   </ext:Label> 
             <ext:Label ID="lblfax" runat="server" Label="公司传真" >   </ext:Label> 
              <ext:Label runat="server"  Label="公司邮箱" ID="lblmail" >   </ext:Label>
              <ext:Label runat="server"  Label="QQ" ID="lblqq" >  </ext:Label>
               <ext:Label runat="server"  Label="MSN/SKYPE" ID="lblmsn" > </ext:Label>
              <ext:Label ID="lblwebsite" runat="server" Label="公司网站" ></ext:Label>
            <ext:Label ID="lbldate" runat="server" Label="更新日期" >
            </ext:Label>

          
               <ext:Label ID="lbladdress" runat="server" Label="地址" >
             </ext:Label>
            <ext:Label runat="server"  Label="邮政编码" ID="lblpost" >
            </ext:Label>
              
                     
                                            
               <ext:Label runat="server"  Label="签约次数" ID="lblnum" >
            </ext:Label>

                  <ext:Label runat="server"  Label="合同数量" ID="lblht" >
            </ext:Label>

              <ext:Label runat="server"  Label="客户类型" ID="lbltype" >
            </ext:Label>

              <ext:Label runat="server" Label="当前状态" ID="lblstatus" >
            </ext:Label>

              <ext:Label runat="server"  Label="行业分类" ID="lblhy" >
            </ext:Label>
             <ext:Label runat="server"  Label="最后更新时间" ID="lbldtime" >
            </ext:Label>
             <ext:Label runat="server"  Label="业务员" ID="lblsales" >
            </ext:Label>


         
                <ext:Button ID="Button1" runat="server" OnClientClick="javascrip:history.back(-1);" Text="返回上一页">
            </ext:Button>    
     </Items>
  
    </ext:SimpleForm>

       <ext:SimpleForm ID="SimpleForm2" BodyPadding="5px" runat="server" EnableBackgroundColor="true"
        ShowBorder="True" Title="招聘信息" ShowHeader="True" AutoHeight="True" >
        <Items>
           <ext:Grid ID="Grid1" Title="职位列表"      PageSize="15" ShowBorder="true" ShowHeader="false"  AutoWidth="true" 
            AllowPaging="true" AutoScroll="true" runat="server" EnableCheckBoxSelect="True"  AllowSorting="true"    DataKeyNames="sid" Height="300" 
        OnPageIndexChange="Grid1_PageIndexChange" EnableRowNumber="True" OnSort="Grid1_Sort" >
            <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="btnDelete" Text="删除选中项" Icon="Delete" OnClick="btnDelete_Click" runat="server">
                    </ext:Button>
                          <ext:Button ID="btaddjob" Text="添加职位"  Icon="Add"   runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>
        
           <ext:BoundField Width="100px" DataField="jbh" DataFormatString="{0}" SortField="jbh" HeaderText="岗位编号" />        
           
           <ext:WindowField ColumnID="myWindowField2" Width="60px" WindowID="Window2" DataTextField="title" HeaderText="招聘职位" 
                DataTextFormatString="{0}" DataIFrameUrlFields="sid" SortField="title" 
                DataIFrameUrlFormatString="jobs_view.aspx?sid={0}" DataWindowTitleField="title"
                DataWindowTitleFormatString="查看招聘职位 - {0}" />
                          
            <ext:BoundField Width="100px" DataField="zone" DataFormatString="{0}" SortField="zone" HeaderText="镇区" />
            <ext:BoundField Width="100px" DataField="edu" DataFormatString="{0}" SortField="edu" HeaderText="学历要求" />
            <ext:BoundField Width="100px" DataField="age" DataFormatString="{0}" SortField="age" HeaderText="年龄要求" />
          
            <ext:BoundField Width="100px" DataField="stdate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="有效时间" />
             <ext:BoundField Width="100px" DataField="edate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="结束时间" />
     
                  <ext:TemplateField Width="160px"  HeaderText="描述" >
                <ItemTemplate>
                    <asp:Literal ID="Literal1" runat="server" Text=<%#Server.HtmlDecode(Eval("remarker").ToString())%>></asp:Literal>             
                </ItemTemplate>
             </ext:TemplateField>

        </Columns>
    </ext:Grid>  

        <ext:Grid ID="Grid2" Title="电话记录"      PageSize="15" ShowBorder="true" ShowHeader="false"  AutoWidth="true" 
            AllowPaging="true" AutoScroll="true" runat="server" EnableCheckBoxSelect="True"  AllowSorting="true"   DataKeyNames="sid" Height="300" 
              OnPageIndexChange="Grid2_PageIndexChange" EnableRowNumber="True" OnSort="Grid2_Sort" >
            <Toolbars>
            <ext:Toolbar ID="Toolbar2" runat="server">
                <Items>
                    <ext:Button ID="dtteldel" Text="删除选中项" Icon="Delete" OnClick="btnDelete2_Click" runat="server">
                    </ext:Button>
                   <ext:Button ID="btaddtel" Text="添加电话记录" Icon="Add"  runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>            
        <ext:BoundField Width="60px" DataField="person" SortField="person" HeaderText="联系人" />
         <ext:WindowField ColumnID="myWindowField2" Width="160px" WindowID="Window2" DataTextField="tel" HeaderText="电话" 
                DataTextFormatString="{0}" DataIFrameUrlFields="sid"
                DataIFrameUrlFormatString="tel_view.aspx?sid={0}" DataWindowTitleField="tel"
                DataWindowTitleFormatString="查看电话记录 - {0}" />
               
          <ext:BoundField Width="130px" DataField="pdtime" DataFormatString="{0:yyyy-M-d HH:mm:ss}" HeaderText="通话时间" SortField="pdtime" />
            <ext:BoundField Width="160px" DataField="sdtime" DataFormatString="{0:yyyy-M-d HH:mm:ss}" HeaderText="登记时间" SortField="sdtime" />
          <ext:BoundField Width="100px" DataField="pname" SortField="pname" HeaderText="业务员" />
             <ext:TemplateField Width="160px"  HeaderText="电话内容" >
                <ItemTemplate>
                    <asp:Literal ID="Literal2" runat="server" Text=<%#Server.HtmlDecode(Eval("pmemo").ToString())%>></asp:Literal>             
                </ItemTemplate>
             </ext:TemplateField>
             </Columns>
            </ext:Grid>

      </Items>  
    </ext:SimpleForm>
      </Items>
    </ext:FormRow>   
     </Rows>
        </ext:Form>
   
    

        <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        OnClose="Window1_Close" Target="Top" IsModal="True" Width="750px" Height="609px">
    </ext:Window>
    
        <ext:Window ID="Window2" Title="查看" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        OnClose="Window1_Close" Target="Top" IsModal="True" Width="750px" Height="309px">
    </ext:Window>  
    
       <ext:Panel ID="Panel1"  runat="server" BodyPadding="5px" EnableBackgroundColor="true"
            ShowBorder="true" ShowHeader="true" Title="企业简介">
            <Items>     <ext:ContentPanel ID="ContentPanel1" ShowHeader="false" runat="server" AutoHeight="true" AutoWidth="true" BodyPadding="5px" 
                EnableBackgroundColor="true"  Title="企业简介">
 <asp:Literal ID="lblmemo" runat="server"></asp:Literal>
 </br>
           </ext:ContentPanel>
            </Items>
        </ext:Panel>
    </div>
    </form>
</body>
</html>
